package com.qll123.android.aop;

import android.os.Parcel;
import android.os.Parcelable;

public class Addresss implements Parcelable {

    public String country;
    public String province;
    public String city;
    public String street;

    protected Addresss(Parcel in) {
        country = in.readString();
        province = in.readString();
        city = in.readString();
        street = in.readString();
    }

    public Addresss() {

    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(country);
        dest.writeString(province);
        dest.writeString(city);
        dest.writeString(street);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<Addresss> CREATOR = new Creator<Addresss>() {
        @Override
        public Addresss createFromParcel(Parcel in) {
            return new Addresss(in);
        }

        @Override
        public Addresss[] newArray(int size) {
            return new Addresss[size];
        }
    };

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }
}